<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=0, user-scalable=no"/>
	<meta name="apple-mobile-web-app-capable" content="yes"/>
	<meta name="format-detection" content="telephone=no">
	<title>设置密码</title>
	<link rel="stylesheet" type="text/css" href="../../Public/css/reset.css"/>
	<link rel="stylesheet" type="text/css" href="../../Public/css/main.css"/>
	<link rel="stylesheet" type="text/css" href="../../Public/css/my.css"/>
	<script type="text/javascript" src="../../Public/js/jquery-2.1.4.min.js"></script>
	<script type="text/javascript" src="../../Public//js/rem.js"></script>
	<script type="text/javascript" src="../../Public/js/swiper-3.3.1.jquery.min.js"></script>
	<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
</head>
<body>
	<!-- head start -->
	<header class="header psa clear bg-color1 bg-color3">
		<span class="back-button" onclick="history.go(-1)">
			<i></i>
			设置密码
		</span>
	</header>
	<!-- head end -->

	<!-- content start -->
	<section class="mt9">
		<form class="form-horizontal js-ajax-form" action="{:U('profile/password_post')}" method="post">
		<div>
			<ul class="set_password">
				<li class="set_password_item">
					当前密码
					<input class="set_password_input" type="password" id="input-old_password" name="old_password" placeholder="请输入您的当前密码" />
				</li>
				<li class="set_password_item">
					设置密码
					<input class="set_password_input" type="password" id="input-password"  name="password" placeholder="请输入您的新密码" />
				</li>
				<li class="set_password_item">
					确认密码
					<input class="set_password_input" type="password" id="input-repassword" name="repassword" placeholder="请确认您的新密码" />
				</li>
			</ul>		
			<input class="set_password_btn" type="submit" name="" value="确认" />
		</div>
		</form>	
	</section>
	<!-- content end -->
	<script type="text/javascript" src="../../Public/js/mian.js"></script>
	<script>
	//判断输入密码的类型  
	function CharMode(iN){  
	if (iN>=48 && iN <=57) //数字  
	return 1;  
	if (iN>=65 && iN <=90) //大写  
	return 2;  
	if (iN>=97 && iN <=122) //小写  
	return 4;  
	else  
	return 8;   
	}  

	//bitTotal函数  
	//计算密码模式  
	function bitTotal(num){  
	modes=0;  
	for (i=0;i<4;i++){  
	if (num & 1) modes++;  
	num>>>=1;  
	}  
	return modes;  
	}  
	function checkStrong(sPW){
	    if (sPW.length<=4)  
		return 0; //密码太短  
		Modes=0;  
		for (i=0;i<sPW.length;i++){  
		//密码模式  
		Modes|=CharMode(sPW.charCodeAt(i));  
		}  
		return bitTotal(Modes);   
	}
	
	</script>
</body>
</html>